package com.cug.zfanspring.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.sql.Timestamp;

public class User {
    @JsonIgnore
    private int id;
    private String username;
    @JsonIgnore
    private String password;
    private boolean enabled;
    private String gender;
    private String address;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-mm-dd")
    private Timestamp birthday;

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setBirthday(Timestamp birthday) {
        this.birthday = birthday;
    }

    public String getGender() {
        return gender;
    }

    public String getAddress() {
        return address;
    }

    public Timestamp getBirthday() {
        return birthday;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
